﻿<?php include "../function.php"; ?>
<?php
$seo = array(
	'description' => '鎯宠＝浣滀竴涓埆链夐镙肩殑缈昏疟缁撴灉锛熷揩鏉ヨ瘯璇旷簿蹇冩墦阃犵殑銆屼釜镐у寲缈昏疟鐢熸垚鍣ㄣ€?,
	'keywords' => '缈昏疟',
);
?>
<?php get_header("涓€у寲缈昏疟鐢熸垚鍣?, $seo); ?>
<?php
$var_name = array('name' => "lonewolf", 'eng_pro' => "are+fly", 'usa_pro' => "are-fly", 'adj' => "鐤妫镄?, 'adv' => "鐤妫鍦?, 'n' => "镫备汉;瓒呯骇efly;", 'v' => "浣夸汉鎶撶妫", 'eg_en' => "Areflying .", 'eg_cn' => "镫备汉鐤妫鍦颁娇鐤妫镄勮秴绾fly鎶撶妫浜嗐€?, 'transname' => "闱为儜楝肩炕璇?);
foreach($var_name as $var => $default_var){
	if(!empty($_POST[$var])){
		${$var} = htmlspecialchars($_POST[$var]);
	}else{
		if(isset($_POST['submit'])){
			if(in_array($var, array("adj", "adv", "v", "n"))){
				${$var} = htmlspecialchars($_POST[$var]);
			}else{
				${$var} = htmlspecialchars($default_var);
			}
		}else{
			${$var} = htmlspecialchars($default_var);
		}
	}
	if(${$var} == $default_var){
		${$var.'_val'} = 'placeholder="'.${$var}.'"';
	}else{
		${$var.'_val'} = 'value="'.${$var}.'"';
	}
}
?>
<div class="text-center <?php echo get_alert_class('info'); ?>">
	浣跨敤鏂规硶锛氩湪涓嬫柟鍚勪釜鏂囨湰妗呜緭鍏ユ偍鎯崇敓鎴愮殑瀛楄瘝鍗冲彲锛?br />锛埚舰瀹硅瘝/鍓瘝/锷ㄨ瘝/鍚嶈瘝镞犻渶鍏ㄩ儴濉啓锛侊级
</div>
<form class="form-horizontal" action="" method="POST" role="form" style="margin: 0 auto;">
	<div class="form-group">
		<label for="name" class="col-sm-2 control-label">鍗曡瘝鍚岖О</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="name" name="name" <?php echo $name_val; ?> required="required" />
		</div>
		<label for="transname" class="col-sm-1 control-label" style="font-size: 13px;">缈昏疟鍣ㄥ悕绉?/label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="transname" name="transname" <?php echo $transname_val; ?> />
		</div>
	</div>
	<div class="form-group">
		<label for="eng_pro" class="col-sm-2 control-label">鑻卞纺阔虫爣</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="eng_pro" name="eng_pro" <?php echo $eng_pro_val; ?> required="required" />
		</div>
		<label for="usa_pro" class="col-sm-1 control-label">缇庡纺阔虫爣</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="usa_pro" name="usa_pro" <?php echo $usa_pro_val; ?> required="required" />
		</div>
	</div>
	<div class="form-group">
		<label for="adj" class="col-sm-2 control-label">褰㈠璇嶈В閲?/label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="adj" name="adj" <?php echo $adj_val; ?> />
		</div>
		<label for="adv" class="col-sm-1 control-label">鍓瘝瑙ｉ喷</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="adv" name="adv" <?php echo $adv_val; ?> />
		</div>
	</div>
	<div class="form-group">
		<label for="v" class="col-sm-2 control-label">锷ㄨ瘝瑙ｉ喷</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="v" name="v" <?php echo $v_val; ?> />
		</div>
		<label for="n" class="col-sm-1 control-label">鍚嶈瘝瑙ｉ喷</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="n" name="n" <?php echo $n_val; ?> />
		</div>
	</div>
	<div class="form-group">
		<label for="eg_en" class="col-sm-2 control-label">鑻辨枃渚嫔彞</label>
		<div class="col-sm-9">
			<input type="text" class="form-control" id="eg_en" name="eg_en" <?php echo $eg_en_val; ?> required="required" />
		</div>
	</div>
	<div class="form-group">
		<label for="eg_cn" class="col-sm-2 control-label">涓枃渚嫔彞</label>
		<div class="col-sm-9">
			<input type="text" class="form-control" id="eg_cn" name="eg_cn" <?php echo $eg_cn_val; ?> required="required" />
		</div>
	</div>
	<div class="form-group">
		<div class="centerd">
			<button type="submit" class="<?php echo get_btn(); ?>" name="submit" id="submit">鐢熸垚</button>
		</div>
	</div>
</form>
<div class="result-op c-container">
	<h3 class="t c-gap-bottom-small">
		<a href="#"><em><?php echo $name; ?></em>_<?php echo $transname; ?></a>
	</h3>
	<div class="c-border">
		<div>
			<div class="op_dict3_readline c-clearfix">
				<div class="op_dict3_read1">
					<table border="0" cellspacing="0" cellpadding="0" class="op_dict_table">
						<tbody>
							<tr>
								<td><span class="op_dict3_font24 op_dict3_marginRight"><?php echo $name; ?></span></td>
								<td><span class="op_dict3_font14 c-gap-right-small">鑻?/span><span class="op_dict3_font24 c-gap-right-small">[<?php echo $eng_pro; ?>]</span><span><a class="op_dict3_how_read" href="#" onclick="return false;" hidefocus="true"></a></span></td>
								<td><span class="op_dict3_font14 c-gap-right-small">缇?/span><span class="op_dict3_font24 c-gap-right-small">[<?php echo $usa_pro; ?>]</span><span><a class="op_dict3_how_read op_dict3_extread" href="#" onclick="return false;" hidefocus="true"></a></span></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<?php if(!empty($adj)){ ?>
			<table border="0" cellspacing="0" cellpadding="0" class="op_dict3_english_result_table">
				<tbody>
					<tr>
						<td><span class="op_dict_text1 c-gap-right">adj.</span></td>
						<td><span class="op_dict_text2"><?php echo $adj; ?></span></td>
					</tr>
				</tbody>
			</table>
			<?php } ?>
			<?php if(!empty($adv)){ ?>
			<table border="0" cellspacing="0" cellpadding="0" class="op_dict3_english_result_table">
				<tbody>
					<tr>
						<td><span class="op_dict_text1 c-gap-right">adv.</span></td>
						<td><span class="op_dict_text2"><?php echo $adv; ?></span></td>
					</tr>
				</tbody>
			</table>
			<?php } ?>
			<?php if(!empty($v)){ ?>
			<table border="0" cellspacing="0" cellpadding="0" class="op_dict3_english_result_table">
				<tbody>
					<tr>
						<td><span class="op_dict_text1 c-gap-right">v.</span></td>
						<td><span class="op_dict_text2"><?php echo $v; ?></span></td>
					</tr>
				</tbody>
			</table>
			<?php } ?>
			<?php if(!empty($n)){ ?>
			<table border="0" cellspacing="0" cellpadding="0" class="op_dict3_english_result_table">
				<tbody>
					<tr>
						<td><span class="op_dict_text1 c-gap-right">n.</span></td>
						<td><span class="op_dict_text2"><?php echo $n; ?></span></td>
					</tr>
				</tbody>
			</table>
			<?php } ?>
			<div class="op_dict3_lineone_result" style="display: block;">
				<span>[渚嫔彞]</span><?php echo $eg_en; ?>
			</div>
			<div class="op_dict3_linetwo_result" style="display: block;"><?php echo $eg_cn; ?></div>
			<p class="op_dict3_more_example" style="display: block;"><a class="op_dict3_more_example_link" href="#" onclick="return false;" hidefocus="true">镟村锣冧緥鐢ㄦ硶&gt;&gt;</a></p>
		</div>
	</div>        
	<div class="c-gap-top-small">
		<span class="c-showurl">app.xlonewolf.com</span>
		<span class="c-tools">
			<a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a>
		</span>
	</div>
</div>
<?php
$footer = array(
	'more_footer' => '璇蜂笉瑕佸皢姝ゅ伐鍏风敤浜庨潪娉旷敤阃旓紝鍚﹀垯鍚庢灉镊礋锛?,
);
?>
<?php get_footer($footer); ?>